﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Jxym.wlkc2011.Module.Default.model;
using Jxym.DBUtility;
using System.Web.Security;

namespace Jxym.wlkc2011
{
    public partial class _default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                MsSqlDal<User_Info> iUi = new MsSqlDal<User_Info>();
                User_Info ui = iUi.GetModel("ID=" + Jxym.Common.Request.AdminID("user"), null);
                if (ui != null)
                    userName.Text = ui.Name;
            }
        }

        protected void LinkButton1_Click(object sender, EventArgs e)
        {
            FormsAuthentication.SignOut();
            Response.Redirect(Request.Url.AbsolutePath);
        }
    }
}